package com.st.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.st.domain.StPurchaseRecords;

/**
 * 课程购买记录Mapper接口
 *
 * @author zhw
 * @date 2024-10-24
 */
public interface StPurchaseRecordsMapper extends BaseMapper<StPurchaseRecords> {
    /**
     * 查询课程购买记录
     *
     * @param id 课程购买记录主键
     * @return 课程购买记录
     */
    public StPurchaseRecords selectStPurchaseRecordsById(Integer id);

    /**
     * 查询课程购买记录列表
     *
     * @param stPurchaseRecords 课程购买记录
     * @return 课程购买记录集合
     */
    public List<StPurchaseRecords> selectStPurchaseRecordsList(StPurchaseRecords stPurchaseRecords);

    /**
     * 新增课程购买记录
     *
     * @param stPurchaseRecords 课程购买记录
     * @return 结果
     */
    public int insertStPurchaseRecords(StPurchaseRecords stPurchaseRecords);

    /**
     * 修改课程购买记录
     *
     * @param stPurchaseRecords 课程购买记录
     * @return 结果
     */
    public int updateStPurchaseRecords(StPurchaseRecords stPurchaseRecords);

    /**
     * 删除课程购买记录
     *
     * @param id 课程购买记录主键
     * @return 结果
     */
    public int deleteStPurchaseRecordsById(Integer id);

    /**
     * 批量删除课程购买记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStPurchaseRecordsByIds(Integer[] ids);
}